import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '../views/home.vue'
import plugin from '../views/plugin.vue'
import my from '../views/my.vue'
import login from '../views/login.vue'
import bootpage from "../views/bootpage.vue";

Vue.use(VueRouter)

const routes = [
    {
        path: '/',
        name: 'bootpage',
        component: bootpage
    },
    {
        path: '/home',
        name: 'home',
        component: home,
        children: [
            {
                path: '/plugin',
                name: 'plugin',
                component: plugin,
            },
            {
                path: '/my',
                name: 'my',
                component: my,
            }
        ]
    }, {
        path: '/login',
        name: 'login',
        component: login
    },
]

const router = new VueRouter({
    routes
})

export default router
